<template>
  <view>
		<topCommonTitleBar
			class="topBar"
			:statePerch="true"
			backgroundColor="#F1F1F1"
			arrow="black"
			titleColor="#333333"
			positionType="fixed"
			:show-dot="true"
			dotColor="#333"
			@actionClick="actionClick"
		>
		</topCommonTitleBar>

    <view class="main">
      <view class="title">
        {{ title }}
      </view>
      <view class="time">{{ parseTimeDot(+new Date(createTime)) }}</view>
      <view class="content">
        <u-parse
          :content="content"
          :lazyLoad="true"
          @linkTap="navigate"
        ></u-parse>
      </view>
      <view class="num">阅读 {{ num }}</view>
    </view>

    <u-popup
      :show="showMore"
      :round="16"
      :closeOnClickOverlay="true"
      :customStyle="{ backgroundColor: 'transparent' }"
      class="showMore"
      @close="showMore = false"
    >
      <view class="moreItem">
        <view
          class="item"
          v-for="(item, index) in menuList"
          :key="index"
          @click="menuClick(item)"
        >
          <image :src="item.icon" class="icon"></image>
          <view class="titleMore">{{ item.name }}</view>
        </view>
      </view>
      <view class="close" @click="showMore = false">取消</view>
    </u-popup>
  </view>
</template>

<script
  type="text/javascript"
  src="plus-confusion://../pages/message/afficheDetail/index"
></script>

<style lang="scss" scoped>

.main {
  padding: 30rpx 50rpx;
	padding-top: calc(var(--status-bar-height) * 2);

  .title {
    font-size: 40rpx;
    font-family: Source Han Sans CN-Bold, Source Han Sans CN;
    font-weight: bold;
    color: #333333;
    line-height: 56rpx;
  }

  .time {
    font-size: 24rpx;
    font-family: Source Han Sans CN-Normal, Source Han Sans CN;
    color: #999999;
    line-height: 40rpx;
    padding-top: 34rpx;
    padding-bottom: 44rpx;
  }

  .num {
    padding-top: 30rpx;
    font-size: 28rpx;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    color: #c2c2c2;
    line-height: 55rpx;
  }
}

.moreItem {
  padding: 34rpx 26rpx;
  box-sizing: border-box;
  width: 700rpx;
  margin: 12rpx auto;
  border-radius: 16rpx;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 162rpx;
}

.icon {
  width: 87rpx;
  height: 85rpx;
}

.titleMore {
  margin-top: 20rpx;
  font-size: 26rpx;
  color: #646566;
}

.close {
  line-height: 94rpx;
  background-color: #ffffff;
  width: 700rpx;
  height: 94rpx;
  margin: 12rpx auto;
  margin-bottom: 34rpx;
  border-radius: 16rpx;
  text-align: center;
}
</style>
